package com.naiterui.ehp.bs.doctor.dao.impl;

import com.naiterui.ehp.bs.doctor.dao.ITaxAuditDao;
import com.naiterui.ehp.bs.doctor.domain.TaxCertificationAudit;
import com.naiterui.ehp.bs.doctor.repository.ITaxAuditRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AdTaxAuditDaoImpl  implements ITaxAuditDao {

    @Autowired
    private ITaxAuditRepository taxAuditRepository;

    @Override
    public TaxCertificationAudit getTaxAudit(Long doctorId) {
        return taxAuditRepository.findFirstByDoctorId(doctorId);
    }
}
